<include file="Public/newset-header" title="价格套餐" />
    <div class="collapse navbar-collapse navbar-responsive-collapse">
        <ul class="nav navbar-nav navbar-right" style="display:none">
           <li class=""><a href="{:U('Index/index')}">首页</a></li>
            <li><a href="{:U('Index/index')}">发布应用</a></li>
            <li><a href="{:U('Index/listinfo')}">应用管理</a></li>
            <li><a href="{:U('member/index')}">账户设置</a></li>
			<li><a href="{:U('member/ticket')}">我的工单</a></li>
        </ul>
    </div> <!--/navbar-collapse--></div>
</div>
</header>
<!--=== Breadcrumbs ===-->
<div class="row-fluid breadcrumbs margin-bottom-20">
<div class="container">
    <h1 class="pull-left">价格套餐</h1>
    <ul class="pull-right breadcrumb" style="display:none;">
        <li>管理我的信息</li>
    </ul>
</div><!--/container-->
</div><!--/breadcrumbs-->
<!--=== End Breadcrumbs ===-->

<!--=== Content Part ===-->
<div class="container content recent">  

    <div class="tab-v1 margin-bottom-20" style="display:none;">
        <ul class="nav nav-tabs">
            <li class="active"><a  href="javascript:void(0)">我的应用</a></li>
            <!--<li class=""><a href="mygroup.html">我的分组</a></li>-->
        </ul>                
    </div>
    <div class="my-header margin-bottom-20" style="border-bottom: 2px solid #eee;">
        <div class="my-navbar my-navbar-default" role="navigation">
            <div class="container" style="padding-left:0px">
                <div class="my-collapse my-navbar-collapse my-navbar-responsive-collapse">
                    <ul class="my-nav my-navbar-nav" style="float:left">
                    <li class="active"><a>价格套餐</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
            <div class="col-md-12">
           <div class="margin-bottom-20">
            <div class="panel pgy-panel-sea margin-bottom-40" id="tabbb">
				<form action="" id="paytaocan" method="post" target="_blank">
					<input type="hidden" name="userid" value="{$model.id}">
					<div class="tabbb_box" style="padding: 20px;">
						<div class="form-group">
							<label class="col-sm-2 control-label">套餐</label>
							<div class="">
								<label class="radio-inline">
									<input name="buymoney" value="1" checked="checked" type="radio">1元10次下载
								</label>
								<label class="radio-inline">
									<input name="buymoney" value="35" type="radio">35元1000次下载
								</label>
								<label class="radio-inline">
									<input name="buymoney" value="100" type="radio">100元3000次下载
								</label>
								<label class="radio-inline">
									<input name="buymoney" value="160" type="radio">160元5000次下载
								</label>
								<label class="radio-inline">
									<input name="buymoney" value="300" type="radio">300元10000次下载
								</label>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">支付方式</label>
							<div class="">
								<label class="radio-inline">
									<input name="paytype" value="1" checked="checked" type="radio">余额支付（您的余额：{$model.mymoney}元）
								</label>
								<label class="radio-inline">
									<input name="paytype" value="2" type="radio">支付宝
								</label>
								<label class="radio-inline">
									<input name="paytype" value="3" type="radio">微信
								</label>
							</div>
						</div>

						<div class="form-group" style="text-align:center;padding-top:20px;">
							<a class="btn-u" href="javascript:void();" onclick="gotopay()" ><i class="fa fa-cloud-upload"></i> 购买</a>
						</div>
					</div>
				</form>
            </div>
            </div>
        </div>
        <!--End Striped Rows-->
    </div>

</div><!--/container-->
<script language="javascript">
function gotopay(){
	var val = $('input:radio[name="paytype"]:checked').val();
	alert(val);
	if(val=='1'){
		$("#paytaocan").attr("action", "{:U('member/buydown')}");
	}else if(val=='2'){
		<if condition="$ispc eq 1">
			$("#paytaocan").attr("action", "/alipaypc/pagepay/paytaocan.php");
			//$("#paytaocan").attr("action", "/alipay/wappay/paytaocan.php");
		<else/>
			$("#paytaocan").attr("action", "/alipay/wappay/paytaocan.php");
		</if>
		
	}else if(val=='3'){
		<if condition="$ispc eq 1">
			//$("#paytaocan").attr("action", "/jiupay/paytaocan.php");
			alert("请复制此链接到手机浏览器点击进行支付");
			return false;
		<else/>
			$("#paytaocan").attr("action", "/jiupay/paytaocan.php");
		</if>
		
	}
	//
	$('#paytaocan').submit();
}
</script>
<include file="Public/newset-footer" />